package com.example.administrator.appli.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.example.administrator.appli.R;

/**
 * Created by Administrator on 2017/5/9.
 */
public class HandlerDialog2 extends Dialog {
    Context context;

    public HandlerDialog2(Context context) {
        super(context);
        this.context=context;
    }

    public HandlerDialog2(Context context, int themeResId) {
        super(context, themeResId);
    }

    protected HandlerDialog2(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
    }
    TextView tv_dialog;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_handler);
        tv_dialog= (TextView) findViewById(R.id.tv_dialoig);

    }
    public static int i=0;
    public void upData(){
        i++;
        tv_dialog.setText("==="+i);

    }

}
